﻿using Framework.Core.Process.Tasks;
using Xunit;

namespace Framework.Tests.Core.Process.Tasks
{
    public class CopyTest
    {
        [Fact]
        public void Should_validate_command()
        {
            var copy = new Copy(@"d:\test.txt", @"d:\test2.txt");

            Assert.True(copy.IsNative);
            Assert.Equal("xcopy", copy.Name);
            Assert.Equal(@"C:\Windows\System32\xcopy.exe", copy.FileName);
            Assert.Equal(@"/Y /R /Q /i ""d:\test.txt"" ""d:\test2.txt""", copy.Arguments);
        }
    }
}
